import Vue from "vue"
import App from "./App"
import router from "./router"
import less from "less"
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css";
// import '!style-loader!css-loader!stylus-loader!./assets/stylus/index.styl'
// import "../src/assets/less/index.less"
// import './assets/css/global.less'
import * as echarts from "echarts"
import "echarts-liquidfill"

let fs = require('fs')
Vue.prototype.$fs = fs;
import Vant from "vant";
import "vant/lib/index.css";
import "leaflet/dist/leaflet.css"
// // 引入Leaflet对象 挂载到Vue上，便于全局使用，也可以单独页面中单独引用
import * as L from "leaflet"
Vue.L = Vue.prototype.$L = L
// import VueAMap from "vue-amap";

// 将自动注册所有组件为全局组件
import dataV from "@jiaminghi/data-view"
import axios from "axios" 
Vue.use(dataV)
import AMapLoader from "@amap/amap-jsapi-loader";
import pinyin from "../node_modules/js-pinyin/index"
Vue.prototype.$AMapLoader = AMapLoader
Vue.prototype.$axios = axios
Vue.prototype.$pinyin = pinyin;

Vue.use(Vant);

Vue.config.productionTip = false;
// Vue.use(less);
Vue.use(ElementUI);
Vue.prototype.$echarts = echarts;

new Vue({
	el: "#app",
	router,
	components: { App },
	template: "<App/>"
})
